/**
 * @description：描述
 * @author: zhangYuanTao
 * @date: 2021-07-14 22:59
 * @LastEditTime : 2021-07-14 22:59
 * @FilePath : reducer
 */

import * as actionTypes from "./constants"
import { Map } from 'immutable';

const defaultState = Map({
  topBanners: []
})

export default function reducer(state = defaultState, action) {
  switch (action.type) {
    case actionTypes.CHANGE_TOP_BANNERS:
      return state.set("topBanners", action.topBanners);
    default:
      return state;
  }
}
